﻿<%@ Page Language="C#" MasterPageFile="~/Management/ManagementMasterPage.master" AutoEventWireup="true" CodeBehind="cardnumberlist.aspx.cs" Inherits="WebApp.Management.Product.cardnumberlist" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:ListView ID="lvActivity" runat="server" 
        onitemcommand="lvActivity_ItemCommand">
		<LayoutTemplate>
			<table cellpadding="2"  border="1">
				<tr>
					<th>卡号 </th>
					<th>是否用过</th>
					<th>密码</th>
					<th>面值</th>
					<th> 编辑</th>
				</tr>
				<asp:PlaceHolder id=itemPlaceholder runat=server/>
			</table>
			<asp:DataPager ID="dpActivity" runat="server" PagedControlID="lvActivity" PageSize="20">
				<Fields>
					<asp:NextPreviousPagerField ButtonType=Link ShowFirstPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
					<asp:NumericPagerField />
					<asp:NextPreviousPagerField ButtonType=Link ShowLastPageButton="True" ShowNextPageButton="False"
						ShowPreviousPageButton="False" />
				</Fields>
			</asp:DataPager>
		</LayoutTemplate>
		<ItemTemplate>
			<tr>
				
				<td>
					<%# Eval("cardnumbers")%>
				</td>
				<td>
					<%# Eval("Isuserd")%>
				</td>
				<td>
				<%# Eval("password")%>
				</td>
				<td>
				<%# Eval("balance")%>
				</td>
				<td>
					<asp:LinkButton ID=btnDelete runat="server" CommandName=OnDelete CommandArgument=<%# Eval("id") %>>Delete</asp:LinkButton>
					<cc1:ConfirmButtonExtender ID="btnDelete_ConfirmButtonExtender" runat="server" ConfirmText="确定要删除吗？" Enabled="True" TargetControlID="btnDelete"/>
				</td>
			</tr>
		</ItemTemplate>
	</asp:ListView>
</asp:Content>
